package com.iacrqq.sedaf.common;

/**
 * 
 * @author sihai
 *
 */
public interface ThreadControllable
{
	/**
	 * 
	 * @return
	 */
	int getCurrentThreadCount();
	
	/**
	 * 
	 * @return
	 */
	int getIdleTreadCount();
	
	/**
	 * 
	 * @param num
	 * @return
	 */
	int idleThread(int num);
	
	/**
	 * 
	 * @param num
	 */
	int addThread(int num);
	
	/**
	 * 
	 * @param num
	 */
	int removeThread(int num);
}
